﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ApproveStockAdjustmentVoucher.aspx.cs" Inherits="PresentationLayer.ApproveStockAdjustmentVoucher" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <h2>Stock Adjustment Voucher for Approval</h2>
        <br />
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
        <table>
            <tr align="left">
                <td><asp:Label ID="lblRequestedByLabel" runat="server" Text="Requested By"></asp:Label></td>
                <td><asp:Label ID="lblRequestedBy" runat="server"></asp:Label></td>
            </tr>
            <tr align="left">
                <td><asp:Label ID="lblRequestedDateLabel" runat="server" Text="Requested Date"></asp:Label></td>
                <td><asp:Label ID="lblRequestedDate" runat="server"></asp:Label></td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="gvAdjustDetail" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped table-bordered">
            <Columns>
                <asp:TemplateField HeaderText="Item Name">
                    <ItemTemplate>
                        <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemCode") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quantity Adjusted">
                    <ItemTemplate>
                        <asp:Label ID="lblAdjQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Reason">
                    <ItemTemplate>
                        <asp:Label ID="lblReason" runat="server" Text='<%# Eval("Reason") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
        <asp:Button ID="btnApprove" runat="server" Text="Approve" OnClick="btnApprove_Click" CssClass="btn-primary" />    
        <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" CssClass="btn-success" />
        <br />
        <br />
    </div>
</asp:Content>